// @flow
import { connect } from 'react-redux'
import { toggleSidebar } from 'store/modules/sidebar'

import Sidebar from 'components/Sidebar'

const mapStateToProps = (state) => {
  return {
    sidebar: state.sidebar
  }
}

const mapDispatchToProps = {
  toggleSidebar
}

export default connect(mapStateToProps, mapDispatchToProps)(Sidebar)
